package miku.firstgame.command
{
	import miku.firstgame.model.Me;
	import miku.firstgame.model.proxy.ConnectionProxy;
	import miku.firstgame.model.proxy.LobbyProxy;
	import miku.firstgame.model.proxy.MeProxy;
	import miku.firstgame.model.proxy.RoomProxy;
	import miku.firstgame.model.proxy.TalkProxy;
	import miku.firstgame.model.proxy.VersionProxy;
	import miku.firstgame.net.MikuSocketImpl;
	import miku.firstgame.net.SocketImpl;
	import miku.firstgame.net.proxy.Connection;

	import org.puremvc.as3.interfaces.INotification;
	import org.puremvc.as3.patterns.command.SimpleCommand;

	public class ModelPrepCommand extends SimpleCommand
	{
		override public function execute(notification:INotification):void
		{
			super.execute(notification);
			facade.registerProxy(new ConnectionProxy(new MikuSocketImpl()));
			//facade.registerProxy(new VersionProxy());
			facade.registerProxy(new LobbyProxy());
			facade.registerProxy(new MeProxy(Me.Instace));
			facade.registerProxy(new RoomProxy());
			facade.registerProxy(new TalkProxy());

		}
	}
}
